image_yscale = sign(actor_g);
if (global.control == 1)
{
if (character_direction != 0)
{
image_xscale = sign(character_direction);
}
if (character_dead == false)
{
if (character_onground == false) and (actor_onfakeground == false)
{
if (actor_onwater == true)
{
sprite_index = character_sprite_swim[character_haveattacked];
image_speed = (abs(actor_vsp) / 25) * (30 / room_speed);
}
else
{
sprite_index = character_sprite_jump[character_haveattacked];
}
}
else
{
if (character_walk == true)
{
sprite_index = character_sprite_walk[character_haveattacked];
image_speed = (abs(actor_hsp) / 25) * (30 / room_speed);
}
else
{
sprite_index = character_sprite_stand[character_haveattacked];
image_speed = (0.1) * (30 / room_speed);
}
}
}
else
{
sprite_index = character_sprite_hit;
}
if (alarm[2] != -1)
{
visible = (visible == false);
}
else
{
visible = true;
}
}
else
{
visible = true;
image_speed = 0;
}
